package com.example.fundamentallibrary

import android.os.Bundle
import com.trello.rxlifecycle4.components.support.RxAppCompatActivity
import androidx.annotation.LayoutRes




abstract class BaseMvpActivity: RxAppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(getLayoutId());
        init(savedInstanceState);
    }

    @LayoutRes
    protected abstract fun getLayoutId(): Int

    protected fun init(savedInstanceState: Bundle?){}
}